#include<stdio.h>
#include<stdlib.h>
struct bookinfor{
	char bookID[10];
	char bookname[30];
};//书籍
struct reader{
	char ID[10];
	char name[20];
	char sex[2];
	int age;
};//读者
struct adm{
	char ID[10];
	char name[20];
	char sex[2];
	int age;
	double salary;
};//管理员
struct borrowinfor{
	char ID[10];
	char name[20];
	char book[30];
	char borrowtime[30];
	char retime[30];
	double money;
};//借阅情况
struct Node1{
	bookinfor books;
	tNode1 *Nextp1;
};
     Node1 *Headp1 = NULL;
void welcome(){
	printf("*************************************************\n");
	printf("*\t\t大学图书馆信息管理系统\t\t*\n");
	printf("*************************************************\n");
	printf("*\t\t请选择功能列表\t\t\t*\n");
	printf("*************************************************\n");
	printf("*\t\t1.书籍信息的录入\t\t*\n");
	printf("*\t\t2.读者信息的录入\t\t*\n");
	printf("*\t\t3.管理员信息的录入\t\t*\n");
	printf("*\t\t4.借阅情况的录入\t\t*\n");
	printf("*\t\t5.查询书籍信息\t\t\t*\n");
	printf("*\t\t6.查询读者信息\t\t\t*\n");
	printf("*\t\t7.查询管理员信息\t\t*\n");
	printf("*\t\t8.查询借阅情\t\t\t*\n");
	printf("*\t\t9.修改书籍信息\t\t\t*\n");
	printf("*\t\t10.修改读者信息\t\t\t*\n");
	printf("*\t\t11.修改管理员信息\t\t*\n");
	printf("*\t\t12.修改借阅情况\t\t\t*\n");
	printf("*\t\t13.退出\t\t\t\t*\n");
	printf("*************************************************\n");
}
void Inputbook(){
	Node1 *Newp1 = (Node1*)malloc(sizeof(Node1));
	Newp1->Nextp1 = NULL;
	if(Headp1 == NULL){
		Headp1 = Newp1;
	}
	else{
		Newp1->Nextp1 = Headp1;
		Headp1 = Newp1;
	}
	printf("请输入书籍ID：\n");
	scanf("%s",Newp1->books.bookID);
	printf("请输入书名：\n");
	scanf("%s",Newp1->books.bookname);
}